// 时间选择
export class TimerItem {
    startTimeStr: string;
    endTimeStr: string;
}

// 时间格式
export class TimeFormat {
    showTime: string;
    ionTime: string;
}

export class limitTime {
    maxTime: string;
    ionTime: string;
    unixTime: number;
}

//日程项
export class ScheduleItem {
    name: string;
    startTime: number;
    endTime: number;
    frequency: number;
    reminder: number;
    remark: string;
    voiceUrl: string;
    type: number;
    id: any;
    //userCode:string;
    isDel: number;
    voiceLength: number;
    until: any;//结束重复日期
    updateRule: number; //0:本条；1：以后
    delRule: number; //0:本条；1：以后
    appointDay:number;//当前修改的条目日期时间戳
}

// 重复项
export const RepeatItem = [
    "永不",
    "每天",
    "每周",
    "每月",
    "每年"
];
// 提醒
export const NoticeItem = [
    "无",
    "日程开始时",
    "15分钟前",
    "1小时前",
    "1天前"
];

// 表单验证接口
export enum ScheduleFormTip {
    titleError = "请填写标题",
    startTimeError = "请选择开始时间",
    endTimeError = "请选择结束时间",
    repeatError = "请选择重复类型",
    noticekError = "请选择提醒方式"
}

/**
 *日程字符串数据资源类
 *
 * @export
 * @class ScheduleStrResource
 */
export class ScheduleStrResourceCh {
    public static readonly StrDateShowFormat = "MM月DD日";
    public static readonly StrDateTimeShowFormat = "YYYY年MM月DD日 HH:mm";

    public static readonly StrSaveSuccessInfo = "保存成功";
    public static readonly StrSaveFailInfo = "保存失败，请稍后再试";
    public static readonly StrContentEmptyInfo = "标题不能为空";
    public static readonly StrNoneBindCustomerInfo = "请选择关联客户";
    public static readonly StrDeleteConfirmInfo = "您确定要删除吗？";
    public static readonly StrDeleteSuccessInfo = "删除成功";
    public static readonly StrDeleteFailInfo = "删除失败，请稍后再试";
    public static readonly StrBackConfirmInfo = "要放弃当前操作吗？";
    public static readonly StrDataNotReadyInfo = "数据尚未准备好，请等一下再试";
    public static readonly StrOk = "确定";
    public static readonly StrCancel = "取消";
    public static readonly StrObjNotExist = "请重新选择";

    public static readonly StrCalendarTimeCrossDayInfo = "一件事两天做，还是拆成两件事吧";
    public static readonly StrCalendarTimePassedInfo = "时间不能倒流，还是看向未来吧";
    public static readonly StrRecordTooShortInfo = "时间太短了";
    public static readonly StrRecordTooLongInfo = "都说了60秒了，休息下吧";
}

export class ScheduleStrResourceEn {
    public static readonly StrDateShowFormat = "MM-DD";
    public static readonly StrDateTimeShowFormat = "YYYY-MM-DD HH:mm";

    public static readonly StrSaveSuccessInfo = "Save success";
    public static readonly StrSaveFailInfo = "Save failed";
    public static readonly StrContentEmptyInfo = "Please input the title";
    public static readonly StrNoneBindCustomerInfo = "Please choose a customer";
    public static readonly StrDeleteConfirmInfo = "Confirm to delete?";
    public static readonly StrDeleteSuccessInfo = "Delete success";
    public static readonly StrDeleteFailInfo = "Delete failed";
    public static readonly StrBackConfirmInfo = "Give up saving?";
    public static readonly StrDataNotReadyInfo = "Please wait a moment and try again";
    public static readonly StrOk = "Confirm";
    public static readonly StrCancel = "Cancel";
    public static readonly StrObjNotExist = "Please choose again";

    public static readonly StrCalendarTimeCrossDayInfo = "一件事两天做，还是拆成两件事吧";
    public static readonly StrCalendarTimePassedInfo = "时间不能倒流，还是看向未来吧";
    public static readonly StrRecordTooShortInfo = "时间太短了，感觉还要还多话要说";
    public static readonly StrRecordTooLongInfo = "都说了60秒了，休息下吧";
}

